package cn.sciento.starter.lock.constant;

public class LockConstant {
  public static final String LOCK_CLIENT_NAME = "Lock";
  
  public static final String JDK = "JDK";
  
  public static final String COMMA = ",";
  
  public static final String COLON = ":";
  
  public static final String SEMICOLON = ";";
  
  public static final String REDIS_URL_PREFIX = "redis://";
  
  public static final String KEY_PREFIX = "lock:key:";
  
  public static class LoadBalancer {
    public static final String RANDOM_LOAD_BALANCER = "RandomLoadBalancer";
    
    public static final String ROUND_ROBIN_LOAD_BALANCER = "RoundRobinLoadBalancer";
    
    public static final String WEIGHTED_ROUND_ROBIN_BALANCER = "WeightedRoundRobinBalancer";
  }
  
  public static class SubReadMode {
    public static final String SLAVE = "SLAVE";
    
    public static final String MASTER = "MASTER";
    
    public static final String MASTER_SLAVE = "MASTER_SLAVE";
  }
}
